package it.ma.musicplayernew.utils;

import android.bluetooth.BluetoothDevice;

import java.lang.reflect.Method;

public class BluetoothPaired {
	public static boolean createBond(Class<?> paramClass,
			BluetoothDevice paramBluetoothDevice) throws Exception {
		return ((Boolean) paramClass.getMethod("createBond", new Class[0])
				.invoke(paramBluetoothDevice, new Object[0])).booleanValue();
	}

	public static boolean removeBond(Class<?> paramClass,
			BluetoothDevice paramBluetoothDevice) throws Exception {
		return ((Boolean) paramClass.getMethod("removeBond", new Class[0])
				.invoke(paramBluetoothDevice, new Object[0])).booleanValue();
	}
}
